import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import createVuexAlong from 'vuex-along'
import setTing from '@/appSetting'
// import slideBar from './module/layout/slideBar'
import user from './module/user/user'
export default new Vuex.Store({
    state: {
        setTing
    },
    mutations: {},
    actions: {},
    modules: { user },
    plugins: [
        createVuexAlong({
            name: 'appSession',
            local: {
                list: ['setTing', 'user'],
                // 过滤模块 header 数据， 将其他的存入 localStorage
                isFilter: true
            },
            session: {
                list: ['setTing', 'user']
            }
        })
    ]
})
